package com.spic.business.informatization.befor_work_sign.service.impl;

import com.spic.business.informatization.befor_work_sign.domain.MeetingBeforeSignSubtable;
import com.spic.business.informatization.befor_work_sign.mapper.MeetingBeforeSignSubtableMapper;
import com.spic.business.informatization.befor_work_sign.service.IMeetingBeforeSignSubtableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 班前会签到人员Service业务层处理
 *
 * @author yangjie
 * @date 2021-12-20
 */
@Service
public class MeetingBeforeSignSubtableServiceImpl implements IMeetingBeforeSignSubtableService
{
    @Autowired
    private MeetingBeforeSignSubtableMapper meetingBeforeSignSubtableMapper;

    /**
     * 查询班前会签到人员
     *
     * @param id 班前会签到人员主键
     * @return 班前会签到人员
     */
    @Override
    public MeetingBeforeSignSubtable selectMeetingBeforeSignSubtableById(String id)
    {
        return meetingBeforeSignSubtableMapper.selectMeetingBeforeSignSubtableById(id);
    }

    /**
     * 查询班前会签到人员列表
     *
     * @param meetingBeforeSignSubtable 班前会签到人员
     * @return 班前会签到人员
     */
    @Override
    public List<MeetingBeforeSignSubtable> selectMeetingBeforeSignSubtableList(MeetingBeforeSignSubtable meetingBeforeSignSubtable)
    {
        return meetingBeforeSignSubtableMapper.selectMeetingBeforeSignSubtableList(meetingBeforeSignSubtable);
    }

    /**
     * 新增班前会签到人员
     *
     * @param meetingBeforeSignSubtable 班前会签到人员
     * @return 结果
     */
    @Override
    public int insertMeetingBeforeSignSubtable(MeetingBeforeSignSubtable meetingBeforeSignSubtable)
    {
        return meetingBeforeSignSubtableMapper.insertMeetingBeforeSignSubtable(meetingBeforeSignSubtable);
    }

    /**
     * 修改班前会签到人员
     *
     * @param meetingBeforeSignSubtable 班前会签到人员
     * @return 结果
     */
    @Override
    public int updateMeetingBeforeSignSubtable(MeetingBeforeSignSubtable meetingBeforeSignSubtable)
    {
        return meetingBeforeSignSubtableMapper.updateMeetingBeforeSignSubtable(meetingBeforeSignSubtable);
    }

    /**
     * 批量删除班前会签到人员
     *
     * @param ids 需要删除的班前会签到人员主键
     * @return 结果
     */
    @Override
    public int deleteMeetingBeforeSignSubtableByIds(String[] ids)
    {
        return meetingBeforeSignSubtableMapper.deleteMeetingBeforeSignSubtableByIds(ids);
    }

    /**
     * 删除班前会签到人员信息
     *
     * @param id 班前会签到人员主键
     * @return 结果
     */
    @Override
    public int deleteMeetingBeforeSignSubtableById(String id)
    {
        return meetingBeforeSignSubtableMapper.deleteMeetingBeforeSignSubtableById(id);
    }
}
